package com.gxa.user.dto;

import group.Email;
import group.Phone;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @author IL_CheChio
 * @data 2021/5/12 0012 10:30
 */
@Data
public class Keywords {
    /**
     * 员工姓名
     */
    private String memberName;
    /**
     * 部门id
     */
    private String deptId;
    /**
     * 角色id
     */
    private Integer roleId;
    /**
     * 是否禁用 0未禁用 1已禁用
     */
    private Integer memberStatus;
    /**
     * 手机号码
     */
    @Pattern(regexp = "^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$",message = "手机号格式不正确")
    private String memberPhone;
    /**
     * 邮件
     */
    @Pattern(regexp = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*",message = "邮件格式不正确")
    private String memberEmail;

    @ApiModelProperty("当前页")
    private Integer page = 1;
    @ApiModelProperty("页容量")
    private Integer limit = 5;

}
